<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>用户注册</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
    <div class="container">
        <h1 align="center">老柳用户管理系统</h1>
        <h2>用户注册</h2>
        {% with messages = get_flashed_messages(with_categories=true) %}
            {% if messages %}
                <ul class="flashes">
                    {% for category, message in messages %}
                        <li class="{{ category }}">{{ message }}</li>
                    {% endfor %}
                </ul>
            {% endif %}
        {% endwith %}
        <form method="POST" action="{{ url_for('user_register') }}">
            <div class="form-group">
                <label>用户名:</label>
                <input type="text" name="nickname" required>
            </div>
<!--            <div class="form-group">-->
<!--                <label>邮箱:</label>-->
<!--                <input type="email" name="email" required>-->
<!--            </div>-->
            <div class="form-group">
                <label>密码:</label>
                <input type="password" name="password" required>
            </div>
            <button type="submit">注册</button>
        </form>
        <p>已有账号？<a href="{{ url_for('user_login') }}">立即登录</a></p>
    </div>
</body>
</html>